package com.rzcode.coinex.kernel.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.rzcode.coinex.kernel.common.enums.WalletTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;


@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "wallet_trans_record")
public class WalletTransRecord {

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 申请人id
     */
    @ApiModelProperty(value = "申请人id")
    private Long memberId;

    /**
     * 单位
     */
    @ApiModelProperty(value = "单位")
    private String unit;

    /**
     * 划转金额
     */
    @ApiModelProperty(value = "划转金额")
    private BigDecimal amount;

    /**
     * 从哪里划转
     */
    @ApiModelProperty(value = "从哪里划转")
    private WalletTypeEnum source;

    /**
     * 划转到哪里去
     */
    @ApiModelProperty(value = "划转到哪里去")
    private WalletTypeEnum target;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
}
